package com.ms.p2p.provider;


import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.system.AdminUser;

import java.util.List;


public  interface AdminUserProvider {

    /**
     * @Title: findById
     * @Description: 根据id查
     * @param id
     * @return Employee 返回类型
     */
    public AdminUser findById(String id);

    /**
     * 增
     *
     * @param map
     * @return
     */
    public int insert(AdminUser map);
    /**
     * 修改信息
     */
    public int update(AdminUser map);

    public AdminUser selectByadmin_name(String admin_name) ;

    public int delete(int id);
    public List<AdminUser> findPager(String admin_name, String empId, PageBean page);
    public int findCount(String userName, String empId);


    public List<AdminUser> findByDepart(int i) ;

    public int updateEmp(String user_id, String depart, String passowrld, String name, String admin_name);


}